home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
096
/
calrpak.bas
< prev
next >
Wrap
BASIC Source File
|
1985-06-03
|
1KB
|
39 lines
1 '***********************************************************************
2 '* CALR-PAK: a program to reduce the size of the RBBS-PC CALLERS file. *
3 '* *
4 '* (c)1984 by Read Gilgen This program may be copied and used free *
5 '* of charge provided that this notice is not changed or bypassed. *
6 '***********************************************************************
7 '
20 CLS:LOCATE 13,36:PRINT "CALR-PAK"
22 LOCATE 15,17:PRINT "Program to Reduce Size of RBBS-PC CALLERS file"
24 LOCATE 16,29:PRINT "(c)1984 by Read Gilgen"
26 FOR PAUSE=1 TO 2000:NEXT
50 CLS:KEY OFF
100 OPEN "R",#1,"callers",64:FIELD #1, 64 AS INFO$
105 LOCATE 25,1:PRINT "SPACE to continue, <CR> to save records displayed so far.";
106 LOCATE 1,1
110 UDX=LOF(1)/64
111 RCDS = 1
115 FOR LOOP=UDX TO 1 STEP -1
120 GET #1,LOOP
130 PRINT INFO$;
140 PROC$=INPUT$(1)
145 IF PROC$=CHR$(13) THEN 500
146 RCDS = RCDS +1
150 NEXT
500 CLOSE:CLS
510 OPEN "R",#1,"callers",64:FIELD #1, 64 AS INFO$
520 OPEN "R",#2,"callers.new",64:FIELD #2, 64 AS SAVIT$
530 FOR LOOP =((UDX-RCDS)+1) TO UDX
532 GET #1, LOOP
534 IF LEFT$(INFO$,10)=" " THEN GOTO 570
535 PRINT INFO$
540 LSET SAVIT$=INFO$
550 PUT #2
570 NEXT
580 CLOSE
600 ' CALR-PAK (c) 1984 by Read Gilgen
O 570
535 PRINT INFO$
540 LSET SAVIT$=INFO$